package org.wyz.strategy_before;

public class Client {
    public static Object getRoute(RouteType routeType) {

        if (routeType == RouteType.Car) {
            CarService carService = new CarService();
            return carService.getRoute();
        } else if (routeType == RouteType.Bike) {
            BikeService bikeService = new BikeService();
            return bikeService.getRoute();
        }

        return null;
    }
}